<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text和v-html示例</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
</head>
<body>
   <div id="app">
        <div v-if="type === 'A'">
           A
        </div>
        <div v-else-if="type === 'B'">
           B
        </div>
        <div v-else-if="type === 'C'">
           C
        </div>

        <div v-else>
            Not A/B/C
        </div>
   </div>

    <script>
        new Vue({
            el:"#app",
            data:{
                type:"E"
            }
        })
    </script>
</body>
</html>
